﻿@using eLoan.Models;
@model LoanCoMakerModel

@{
    ViewBag.Title = "Delete Loan Co-maker";
    var documentNo = ViewBag.DocumentNo;
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>Delete Loan Co-maker</h2>
        <ol class="breadcrumb">
            <li>
                Funding
            </li>
            <li>
                <a href="@Url.Action("Loans", "Funding")">Loans</a>
            </li>
            <li>
                <a href="@Url.Action("LoanCoMakersAndCollaterals", "Loan", new { documentNo = documentNo, borrowerID = Model.BorrowerID, branchCode = Model.BranchCode })">Loan Co-makers and Collaterals</a>
            </li>
            <li class="active">
                <strong>Delete Loan Co-maker</strong>
            </li>
        </ol>
    </div>
    <div class="col-lg-2"></div>
</div>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-8">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span>Delete loan co-maker <strong>@Html.DisplayFor(m => m.LoanCoMaker.CoMakerName)</strong> for loan <strong>@Html.DisplayFor(m => m.LoanCoMaker.DocumentNo)</strong> ?</span>
                </div>
                <div class="ibox-content">

                    @using (Html.BeginForm("DeleteLoanCoMaker", "LoanCoMaker", new { id = Model.LoanCoMaker.ID, documentNo = Model.DocumentNo, borrowerID = Model.BorrowerID, branchCode = Model.BranchCode  }, FormMethod.Post, new { id = "deleteForm" }))
                    {
                        <fieldset>

                            <button type="submit" id="btnDelete" class="btn btn-primary" name="command" value="Delete">Delete</button>
                            <button type="submit" id="btnCancel" class="btn btn-primary" name="command" value="Cancel">Cancel</button>

                        </fieldset>
                    }

                </div>
            </div>

        </div>
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}